package com.study.design.model.behaviorPattern.strategy;

/**
* @Name: Context
* @Description: 负责和具体策略类进行交互
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午8:15:05 
* @Version: V1.0
 */
public class Context {
	
	private Strategy strategy ;

	public Context(Strategy strategy) {
		this.strategy = strategy;
	}

	public void setStrategy(Strategy strategy) {
		this.strategy = strategy;
	}
	
	/**
	* @Name: quotedPrice
	* @Description: 具体报价
	* @Author: 李超	lc_jack@foxmail.com
	* @Version: V1.0
	* @CreateDate: 2017-2-15 下午8:17:23
	* @Parameters: standardPrice 真实价格
	* @Return: void 无
	 */
	public void quotedPrice(double standardPrice) {
		System.out.println("您的报价：" + strategy.getPrice(standardPrice));
	}

}
